import compress from 'koa-compress';

export default compress({
  filter: contentType => /text/i.test(contentType),
  threshold: 2048,
  flush: require('zlib').Z_SYNC_FLUSH
})